Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Creating and Disposing of Time Bases


SetTimeBaseZero

You can use the SetTimeBaseZero function to change the offset from a time base to either its master time base or its clock component. You establish the initial offset when you assign the time base to its time source.

pascal void SetTimeBaseZero (TimeBase tb, TimeRecord *zero);
tb
Specifies the time base for this operation. Your application obtains this time base identifier from the NewTimeBase function (described on page 2-297).
zero
Contains a pointer to the time that corresponds to a 0 time value for the slave time scale. This parameter allows you to set an offset between the time base and its time source. Set this parameter to nil if there is no offset.
ERROR CODES
None

SEE ALSO
You can use the SetTimeBaseMasterClock function (described on page 2-299) to assign a time base to a clock component.

You can use the SetTimeBaseMasterTimeBase function (described on page 2-301) to assign a time base to a master time base.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996